package com.component.swing.pannel;

import javax.annotation.PostConstruct;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JTextArea;
import javax.swing.JScrollBar;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.component.swing.listener.MouseListener;
import com.internal.system.System;
import javax.swing.JFormattedTextField;
import javax.swing.JProgressBar;
import javax.swing.JTextPane;
import javax.swing.JTable;
import javax.swing.JSeparator;
import javax.swing.JList;
import javax.swing.Box;
import java.awt.TextArea;

@Component
public class TextPannel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Create the panel.
	 * 
	 */
	private JTextArea textArea;
	@Autowired private System system;
	
	public TextPannel() {
		setLayout(new BorderLayout(0, 0));
		
		textArea = new JTextArea();
		textArea.setEditable(true);
		add(textArea, BorderLayout.CENTER);
		
	}
	
	@PostConstruct
	public void setting(){
		
		textArea.setName("textArea");
		
		system.add(textArea.getName(), textArea);

	}


}
